package com.example.demo.service.Imp;

import com.example.demo.dao.PayMapper;
import com.example.demo.model.Pay;
import com.example.demo.service.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 作者：石红宝
 * 时间：2019-5-27
 */
@Service
public class PayServiceImp implements PayService {
    @Autowired
    private PayMapper payMapper;
    public Pay  PaySelect(Integer pid){
        return  payMapper.PaySelect(pid);
    }
    @Override
    public List<Pay> getPay(){
        return  payMapper.getPay();
    }
    @Override
    public  List<Pay > getbang(){
        return payMapper.getbang();
    }
    @Override
    public int PayAdd(Pay paymodel){
        return payMapper.PayAdd(paymodel);
    }
    @Override
    public int PayUpdate(Pay paymodel){
        return  payMapper.PayUpdate(paymodel);
    }
    @Override
    public int  PayDel(Integer pid){
        return payMapper.PayDel(pid);
    }
}
